class W5887_33 
{
	public static void main(String[] args) 
	{
	int i=0,j=0;
	do
	    {
	    do
	    {
		System.out.print(j);
		j++;
		}while(j<i);
	System.out.println(i);
	i++;
	j=0;
	}while(i<10);
     }
} 
